<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Returns the access mode or the file access number of a file that was opened with the Open statement. The file access number is dependent on the operating system (OSH = Operating System Handle).</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>If you use a 32-Bit operating system, you cannot use the FileAttr-Function to determine the file access number.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">FileNumber:</span> The number of the file that was opened with the Open statement.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Attribute:</span> Integer expression that indicates the type of file information that you to return. The following values are possible:</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>1: The FileAttr-Function indicates the access mode of the file.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>2: The FileAttr-Function returns the file access number of the operating system.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>If you specify a parameter attribute with a value of 1, the following return values apply:</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>1 - INPUT (file open for input)</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>2 - OUTPUT (file open for output)</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>4 - RANDOM (file open for random access)</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>8 - APPEND (file open for appending)</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>32 - BINARY (file open in binary mode).</p>
<p class="PropText"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>Open aFile For Output As #iNumber</p>
<p class="PropText"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/>Print #iNumber, "This is a line of text"</p>